package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.domain.StatementItem;
import cn.wolfcode.car.business.query.StatementItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface StatementItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StatementItem record);

    StatementItem selectByPrimaryKey(Long id);

    List<StatementItem> selectAll();

    int updateByPrimaryKey(StatementItem record);

    // 高级查询
    List<StatementItem> selectForList(StatementItemQuery qo);


    /**
     *  未使用：这是批量添加的SQL
     */
    // 添加结算单明细
    void saveItems(ArrayList<StatementItem> statementItems);

    void deleteByStatementId(Long statementId);

}